package server;

import java.util.Scanner;

public class AuctionServerUserInputThread extends Thread {

	private AuctionServer server;
	
	
	public AuctionServerUserInputThread(AuctionServer server){
		this.server=server;
	}
	
	public void run() {
		Scanner stdin =  new Scanner(System.in);
		String userinput;
		boolean isActive = true;
		while (isActive) {
			userinput=stdin.nextLine().trim();
			if(userinput.equals("!exit")) {
				server.shutServerDown();
				isActive = false;
			}

		}
		stdin.close();
	}
}
